package com.yfp.device.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName order_detail
 */
@TableName(value ="order_detail")
@Data
public class OrderDetail implements Serializable {
    /**
     * 
     */
    @TableId
    private String orderDetailId;

    /**
     * 
     */
    private String orderId;

    /**
     * 
     */
    private String packageId;

    /**
     * 
     */
    private String packageName;

    /**
     * 
     */
    private Boolean isHeatAdditive;

    /**
     * 
     */
    private Long heatTime;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private String applietAmount;

    /**
     * 
     */
    private String deviceAmount;

    /**
     * 数量
     */
    private Long count;

    /**
     * 套餐已完成数量
     */
    private Long completedCount;

    /**
     * 套餐已完成数量
     */
    private Long pickedUpCount;

    /**
     * 
     */
    private String thumbUrl;

    /**
     * 
     */
    private String tablewareUrl;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Date queueTime;

    /**
     * 代取状态（0：没点击过代取，1：点击过代取）
     */
    private Integer replacementState;

    /**
     * 扫码状态（0：没扫描过二维码，1：扫描过二维码）
     */
    private Integer scannedStatus;

    private String pickupNum;

    @Schema(title = "城市名称")
    private String cityName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderDetail other = (OrderDetail) that;
        return (this.getOrderDetailId() == null ? other.getOrderDetailId() == null : this.getOrderDetailId().equals(other.getOrderDetailId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getPackageId() == null ? other.getPackageId() == null : this.getPackageId().equals(other.getPackageId()))
            && (this.getPackageName() == null ? other.getPackageName() == null : this.getPackageName().equals(other.getPackageName()))
            && (this.getIsHeatAdditive() == null ? other.getIsHeatAdditive() == null : this.getIsHeatAdditive().equals(other.getIsHeatAdditive()))
            && (this.getHeatTime() == null ? other.getHeatTime() == null : this.getHeatTime().equals(other.getHeatTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getApplietAmount() == null ? other.getApplietAmount() == null : this.getApplietAmount().equals(other.getApplietAmount()))
            && (this.getDeviceAmount() == null ? other.getDeviceAmount() == null : this.getDeviceAmount().equals(other.getDeviceAmount()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getCompletedCount() == null ? other.getCompletedCount() == null : this.getCompletedCount().equals(other.getCompletedCount()))
            && (this.getPickedUpCount() == null ? other.getPickedUpCount() == null : this.getPickedUpCount().equals(other.getPickedUpCount()))
            && (this.getThumbUrl() == null ? other.getThumbUrl() == null : this.getThumbUrl().equals(other.getThumbUrl()))
            && (this.getTablewareUrl() == null ? other.getTablewareUrl() == null : this.getTablewareUrl().equals(other.getTablewareUrl()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getQueueTime() == null ? other.getQueueTime() == null : this.getQueueTime().equals(other.getQueueTime()))
            && (this.getReplacementState() == null ? other.getReplacementState() == null : this.getReplacementState().equals(other.getReplacementState()))
            && (this.getScannedStatus() == null ? other.getScannedStatus() == null : this.getScannedStatus().equals(other.getScannedStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderDetailId() == null) ? 0 : getOrderDetailId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getPackageId() == null) ? 0 : getPackageId().hashCode());
        result = prime * result + ((getPackageName() == null) ? 0 : getPackageName().hashCode());
        result = prime * result + ((getIsHeatAdditive() == null) ? 0 : getIsHeatAdditive().hashCode());
        result = prime * result + ((getHeatTime() == null) ? 0 : getHeatTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getApplietAmount() == null) ? 0 : getApplietAmount().hashCode());
        result = prime * result + ((getDeviceAmount() == null) ? 0 : getDeviceAmount().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getCompletedCount() == null) ? 0 : getCompletedCount().hashCode());
        result = prime * result + ((getPickedUpCount() == null) ? 0 : getPickedUpCount().hashCode());
        result = prime * result + ((getThumbUrl() == null) ? 0 : getThumbUrl().hashCode());
        result = prime * result + ((getTablewareUrl() == null) ? 0 : getTablewareUrl().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getQueueTime() == null) ? 0 : getQueueTime().hashCode());
        result = prime * result + ((getReplacementState() == null) ? 0 : getReplacementState().hashCode());
        result = prime * result + ((getScannedStatus() == null) ? 0 : getScannedStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderDetailId=").append(orderDetailId);
        sb.append(", orderId=").append(orderId);
        sb.append(", packageId=").append(packageId);
        sb.append(", packageName=").append(packageName);
        sb.append(", isHeatAdditive=").append(isHeatAdditive);
        sb.append(", heatTime=").append(heatTime);
        sb.append(", status=").append(status);
        sb.append(", applietAmount=").append(applietAmount);
        sb.append(", deviceAmount=").append(deviceAmount);
        sb.append(", count=").append(count);
        sb.append(", completedCount=").append(completedCount);
        sb.append(", pickedUpCount=").append(pickedUpCount);
        sb.append(", thumbUrl=").append(thumbUrl);
        sb.append(", tablewareUrl=").append(tablewareUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", queueTime=").append(queueTime);
        sb.append(", replacementState=").append(replacementState);
        sb.append(", scannedStatus=").append(scannedStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}